PHPR API (3.7.0)

Download OpenAPI specification:

PHPR API USING API-PLATFORM

rents

Creates a rents resource.

Creates a rents resource.

Authorizations:
JWT
path Parameters
id
required
string

rents identifier

Request Body schema:
required

The new rents resource

project
string or null <iri-reference>
location
string or null
task
string or null <iri-reference>
chargingInvoices
Array of strings <iri-reference> [ items <iri-reference > ]
chargingProjects
Array of strings <iri-reference> [ items <iri-reference > ]
dateStart
required
string <date-time>
dateEnd
string or null <date-time>
dateCheckout
string or null <date-time>
dateCheckin
string or null <date-time>
chargeable
required
boolean
Default: true
description
string or null
note
string or null
client
required
string <iri-reference>
responsible
string <iri-reference>
reservedEmployee
string or null <iri-reference>
product
string or null <iri-reference>
chargedProduct
string or null <iri-reference>
type
required
string <iri-reference>
owningCorporation
string <iri-reference>
productQuantity
integer
Default: 1
deletedAt
string or null <date-time>
slug
required
string

DB Identifier

customProperties
any

Can contain anything (array, objects, nested objects...).

customData
Array of strings or null
createdAt
string <date-time>
updatedAt
string <date-time>
disabledAt
string or null <date-time>
object (Collection.jsonld)
upload_filename
string
upload_subfolder
string
upload_file
string
upload_file_link
string
timestamp
string <date-time>

Get createdAt.

upload_Subfolder
string
upload_File
string
upload_File_Link
string

Responses

Request samples

Content type
{
  • "project": "https://example.com/",
  • "location": "string",
  • "chargingInvoices": [],
  • "chargingProjects": [],
  • "dateStart": "2019-08-24T14:15:22Z",
  • "dateEnd": "2019-08-24T14:15:22Z",
  • "dateCheckout": "2019-08-24T14:15:22Z",
  • "dateCheckin": "2019-08-24T14:15:22Z",
  • "chargeable": true,
  • "description": "string",
  • "note": "string",
  • "responsible": "https://example.com/",
  • "reservedEmployee": "https://example.com/",
  • "product": "https://example.com/",
  • "chargedProduct": "https://example.com/",
  • "owningCorporation": "https://example.com/",
  • "productQuantity": 1,
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "slug": "string",
  • "customProperties": null,
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "entityFiles": { },
  • "upload_filename": "string",
  • "upload_subfolder": "string",
  • "upload_file": "string",
  • "upload_file_link": "string",
  • "timestamp": "2019-08-24T14:15:22Z",
  • "upload_Subfolder": "string",
  • "upload_File": "string",
  • "upload_File_Link": "string"
}

Response samples

Content type
{
  • "@context": "string",
  • "@id": "string",
  • "@type": "string",
  • "project": {
    },
  • "location": "string",
  • "task": {
    },
  • "dateStart": "2019-08-24T14:15:22Z",
  • "dateEnd": "2019-08-24T14:15:22Z",
  • "dateCheckout": "2019-08-24T14:15:22Z",
  • "dateCheckin": "2019-08-24T14:15:22Z",
  • "chargeable": true,
  • "description": "string",
  • "note": "string",
  • "client": {
    },
  • "responsible": {
    },
  • "reservedEmployee": {
    },
  • "product": {
    },
  • "chargedProduct": {
    },
  • "type": {
    },
  • "owningCorporation": {
    },
  • "shortcode": "RE",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "id": 0,
  • "slug": "string",
  • "customProperties": null,
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "chargingInvoicesListing": "string",
  • "chargingProjectsListing": "string",
  • "chargeableQty": 0,
  • "validChargeable": true,
  • "toString": "string",
  • "isReturned": true,
  • "anonymousToken": "string",
  • "days": [
    ],
  • "customPropertiesListing": "string",
  • "uniqueId": "string",
  • "taggingListing": "string",
  • "enabled": true,
  • "disabled": true
}